yum install mysql 您所在的位置:网站首页 yum mysql80 yum install mysql

yum install mysql

#yum install mysql| 来源: 网络整理| 查看: 265

该解决方案为卸载重装;如果看客不能卸载,请直接关闭

系统:Centos 6.9 MySQL 版本:MySQL 5.7

由于本人以前买了个 Centos 6.9 国外服务器玩并安装了mysql;后来因为忙所以就把服务器搁置了,最近闲下来又开始捣鼓起来。 最开始忘记 mysql 的配置信息,所以想要更新下 mysql;按照网上的方式使用;但是再输入如下指令的 yum install mysql-community-server 结果报如下错误:

[root@host ~]# yum install mysql-community-server Loaded plugins: fastestmirror Setting up Install Process Loading mirror speeds from cached hostfile * base: mirror.san.fastserv.com * elrepo-kernel: repos.lax-noc.com * extras: mirrors.oit.uci.edu * updates: mirror.keystealth.org Resolving Dependencies --> Running transaction check ---> Package mysql-community-server.x86_64 0:5.7.20-1.el7 will be installed --> Processing Dependency: mysql-community-common(x86-64) = 5.7.20-1.el7 for package: mysql-community-server-5.7.20-1.el7.x86_64 --> Processing Dependency: mysql-community-client(x86-64) >= 5.7.9 for package: mysql-community-server-5.7.20-1.el7.x86_64 --> Processing Dependency: systemd for package: mysql-community-server-5.7.20-1.el7.x86_64 --> Processing Dependency: systemd for package: mysql-community-server-5.7.20-1.el7.x86_64 --> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: mysql-community-server-5.7.20-1.el7.x86_64 --> Processing Dependency: libnuma.so.1(libnuma_1.2)(64bit) for package: mysql-community-server-5.7.20-1.el7.x86_64 --> Processing Dependency: libnuma.so.1(libnuma_1.1)(64bit) for package: mysql-community-server-5.7.20-1.el7.x86_64 --> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-server-5.7.20-1.el7.x86_64 --> Processing Dependency: libsasl2.so.3()(64bit) for package: mysql-community-server-5.7.20-1.el7.x86_64 --> Processing Dependency: libnuma.so.1()(64bit) for package: mysql-community-server-5.7.20-1.el7.x86_64 --> Running transaction check ---> Package mysql-community-client.x86_64 0:5.7.20-1.el7 will be installed --> Processing Dependency: mysql-community-libs(x86-64) >= 5.7.9 for package: mysql-community-client-5.7.20-1.el7.x86_64 --> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: mysql-community-client-5.7.20-1.el7.x86_64 --> Processing Dependency: libc.so.6(GLIBC_2.14)(64bit) for package: mysql-community-client-5.7.20-1.el7.x86_64 ---> Package mysql-community-common.x86_64 0:5.7.20-1.el7 will be installed ---> Package mysql-community-server.x86_64 0:5.7.20-1.el7 will be installed --> Processing Dependency: systemd for package: mysql-community-server-5.7.20-1.el7.x86_64 --> Processing Dependency: systemd for package: mysql-community-server-5.7.20-1.el7.x86_64 --> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: mysql-community-server-5.7.20-1.el7.x86_64 --> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-server-5.7.20-1.el7.x86_64 --> Processing Dependency: libsasl2.so.3()(64bit) for package: mysql-community-server-5.7.20-1.el7.x86_64 ---> Package numactl.x86_64 0:2.0.9-2.el6 will be installed --> Running transaction check ---> Package mysql-community-client.x86_64 0:5.7.20-1.el7 will be installed --> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: mysql-community-client-5.7.20-1.el7.x86_64 --> Processing Dependency: libc.so.6(GLIBC_2.14)(64bit) for package: mysql-community-client-5.7.20-1.el7.x86_64 ---> Package mysql-community-libs.x86_64 0:5.7.20-1.el7 will be installed --> Processing Dependency: libc.so.6(GLIBC_2.14)(64bit) for package: mysql-community-libs-5.7.20-1.el7.x86_64 ---> Package mysql-community-server.x86_64 0:5.7.20-1.el7 will be installed --> Processing Dependency: systemd for package: mysql-community-server-5.7.20-1.el7.x86_64 --> Processing Dependency: systemd for package: mysql-community-server-5.7.20-1.el7.x86_64 --> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: mysql-community-server-5.7.20-1.el7.x86_64 --> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-server-5.7.20-1.el7.x86_64 --> Processing Dependency: libsasl2.so.3()(64bit) for package: mysql-community-server-5.7.20-1.el7.x86_64 --> Finished Dependency Resolution Error: Package: mysql-community-server-5.7.20-1.el7.x86_64 (mysql57-community) Requires: libsasl2.so.3()(64bit) Error: Package: mysql-community-client-5.7.20-1.el7.x86_64 (mysql57-community) Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) Error: Package: mysql-community-libs-5.7.20-1.el7.x86_64 (mysql57-community) Requires: libc.so.6(GLIBC_2.14)(64bit) Error: Package: mysql-community-server-5.7.20-1.el7.x86_64 (mysql57-community) Requires: systemd Error: Package: mysql-community-server-5.7.20-1.el7.x86_64 (mysql57-community) Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) Error: Package: mysql-community-client-5.7.20-1.el7.x86_64 (mysql57-community) Requires: libc.so.6(GLIBC_2.14)(64bit) Error: Package: mysql-community-server-5.7.20-1.el7.x86_64 (mysql57-community) Requires: libc.so.6(GLIBC_2.17)(64bit) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest

查询各种信息;基本确定是因为 mysql 的依赖问题;由于对本来说,最快的解决方案就是卸载重装.

卸载方法:

1.快速删除

yum remove mysql mysql-server mysql-libs mysql-server

2.查找残留文件

rpm -qa | grep -i mysql 将查询出来的文件逐个删除,如: yum remove mysql-community-common-5.7.20-1.el6.x86_64

4.查找残留目录

whereis mysql 逐条删除目录,如: rm –rf /usr/lib64/mysql

上述做完后,最好重新查询相关内容,防止漏删

安装:

转自https://segmentfault.com/a/1190000003049498

检测系统是否存在mysql yum list installed | grep mysql 删除mysql依赖项 yum -y remove mysql-libs.x86_64

3.给CentOS添加rpm源,并且选择较新的源

wget dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm yum localinstall mysql-community-release-el6-5.noarch.rpm yum repolist all | grep mysql yum-config-manager --disable mysql55-community yum-config-manager --disable mysql56-community yum-config-manager --enable mysql57-community-dmr yum repolist enabled | grep mysql 安装mysql 服务器 # yum install mysql-community-server

终于没有报错,可以继续了



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有